/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.tencent.tendon.convert.json.listeners;

import com.tencent.tendon.convert.json.*;

/**
 *
 * @author nbzhang
 */
public final class JsonDoubleListener extends JsonAbstractListener<Double> {

    private static final JsonDoubleListener instance = new JsonDoubleListener();

    private JsonDoubleListener() {
    }

    public static JsonDoubleListener getInstance() {
        return instance;
    }

    @Override
    public void convertTo(final JsonWriter out, final Double value) {
        convertDoubleTo(out, value);
    }

    @Override
    public final Double convertFrom(final JsonReader in) {
        return convertDoubleFrom(in);
    }

    @Override
    public Class<Double> getType() {
        return Double.class;
    }
}
